/**

 */
package com.adkfp.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.adkfp.bean.ADKManageUserBean;
import com.adkfp.bean.ADKManageUserRoleBean;
import com.adkfp.bean.ADKUserInfoBean;
/**
 * class name:SelectclassAction <BR>
 * class description: please write your description <BR>
 * Remark: <BR>
 * @version 1.00 2019年1月24日
 * @author ADK)zhoulin
 */
public interface ADKManageUserDaoMapper {
	public void insert(ADKManageUserBean bean);//插入一条记录
	public List<ADKManageUserBean> findByCondition(ADKManageUserBean bean);//根据bean里面的条件(非空)查询所有记录
	public long findByConditionCount(ADKManageUserBean bean);//根据bean里面的条件(非空)查询所有记录条数
	public void delete(@Param("id")Integer id);//删除一条记录
	public void update(ADKManageUserBean bean);//更新一条记录
	public ADKManageUserBean findById(@Param("id")Integer id);//根据id查询一条记录
	public ADKManageUserBean login(@Param("userName")String userName,@Param("password")String password,@Param("role")Integer role);//登录判断
	public List<ADKManageUserBean> afindByCondition(ADKManageUserBean bean);
	public List<ADKManageUserBean> bfindByCondition(ADKManageUserBean bean);
	public List<ADKManageUserBean> BfindByCondition(ADKManageUserBean bean);
	public long bfindByConditionCount(ADKManageUserBean bean);
	public long afindByConditionCount(ADKManageUserBean bean);
	public void deleteUserRole(@Param("userId")String userId, @Param("roleId")String roleId);//删除某个用户的某个角色
	public void insertjuese(ADKManageUserRoleBean bean);//增加用户角色
	public List<Integer> getRoleByUserId(@Param("userId")String userId);//获取用户的权限id
	public void deleteUserRoleByRole(@Param("roleId")String roleId);//删除某角色的所有用户
	public int CfindByConditionCount(ADKManageUserBean paramUser);
	public List<ADKManageUserBean> CfindByCondition(ADKManageUserBean paramUser);
	public List<ADKManageUserBean> aafindByCondition(ADKManageUserBean bean, @Param("roleId") Integer id);
}
